package com.spring.myspace.web.dao;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.spring.myspace.web.model.*;


public interface MySpaceMapper {
	int createJournal(HashMap<String,Object> hm);
	
	int addJournalPhotoCheckFileId(String file_id);
	int addJournalPhotoCheckJournalId(String my_space_journal_id);
	int addJournalPhotoCheckDuplicate(HashMap<String,Object> hm);
	int addJournalPhoto(HashMap<String,Object> hm);
	int addJournalAlbumPhoto(HashMap<String,Object> hm);
	
	int checkVideoID(String file_id);
	int addJournalVideoCheckDuplicate(HashMap<String,Object> hm);
	int addJournalVideo(HashMap<String,Object> hm);
	int addSetVideo(HashMap<String,Object> hm);
	

	int addJournalVideoCoverCheckVideoId(HashMap hm);
	//int addJournalVideoCoverGetCount(HashMap hm);
	int addJournalVideoCoverUpdateFile(HashMap hm);
	//int addJournalVideoCover(HashMap hm);

	
	
	List<Journal> getJournalList(HashMap<String,Object> hm);
	
	String deleteJournalCheckId(HashMap<String,Object> hm);
	List<FileNeedDelete> deleteJournalPhotoGetFile(String my_space_journal_id);
	
	List<FileNeedDelete> deleteJournalVideoCoverGetFile(String my_space_journal_id);
	int deleteJournalVideoCover(String my_space_journal_id);
	List<FileNeedDelete> deleteJournalVideoGetFile(String my_space_journal_id);
	
	int deleteJournalVideo(Map<String,Object> hm);
	int deleteJournal(Map<String,Object> hm);
	int deleteJournalPhoto(Map<String,Object> hm);
	
	int deleteTeacherJournalVideo(Map<String,Object> hm);
	int deleteTeacherJournal(Map<String,Object> hm);
	int deleteTeacherJournalPhoto(Map<String,Object> hm);
	
	
	String deleteSingleeJournalPhotoCheckId(String photo_id);
	int deleteSingleeJournalPhoto(String photo_id);
	String deleteSingleeJournalPhotoGetFileId(String photo_id);
	
	
	String deleteSingleeJournalVideoCheckId(String video_id);
	String deleteSingleeJournalVideoGetFileId(String video_id);
	String deleteSingleeJournalVideoCoverGetFileId(String video_id);
//	int deleteSingleeJournalVideoCover(String video_id);
	int deleteSingleeJournalVideo(String video_id);
	
	
	int updateJournal(HashMap<String,Object> hm);
	int createAlbum(HashMap<String,Object> hm);
	
	int addAlbumPhotoCheckId(HashMap<String,Object> hm);
	int addAlbumPhotoCheckCount(HashMap<String,Object> hm);
	int addAlbumPhoto(HashMap<String,Object> hm);
	
	int updateAlbumPhoto(HashMap<String,Object> hm);
	

	//int removeAlbumCover(HashMap hm);
	int setAlbumCover(HashMap hm);


	
	List<Album> getAlbumList(HashMap<String,Object> hm);
	
	List<AlbumPhoto> getAlbumPhotoList(HashMap<String,Object> hm);
	
	
	
	String deleteAlbumPhotoGetFileId(String photo_id);
	int deleteAlbumPhoto(String photo_id);
	
	
	List<FileNeedDelete> deleteAlbumGetFileId(String my_space_album_id);
	int deleteAllAlbumPhoto(String my_space_album_id);
	int deleteAlbum(String my_space_album_id);
	
	int updateAlbum(HashMap<String,Object> hm);
	
	int addVideo(HashMap<String,Object> hm);
	

	//int deleteVideoCover(HashMap<String,Object> hm);
	int addVideoCover(HashMap<String,Object> hm);
	
	int updateVideo(HashMap<String,Object> hm);
	
	List<SetVideo> getVideoList(HashMap<String,Object> hm);
	
	String deleteVideoCoverGetFileId(HashMap<String,Object> hm);
	List<Map<String,Object>> deleteVideoGetFileId(HashMap<String,Object> hm);
	int deleteVideo(HashMap<String,Object> hm);

}
